<template>
	<view class="box">

	</view>
</template>
<script>
	import {logout} from "../../api/setting.js"
	export default {
		data() {
			return {
			
			}
		},
		methods: {
			allJump(e){
				console.log(e);
				let {url} = e.currentTarget.dataset;
				uni.navigateTo({
					url:url
				})
			},
			out(){
				logout().then(res=>{
					uni.$u.toast(res.msg);
					if(res.code==1){
						uni.removeStorageSync("token")
						uni.removeStorageSync("AmAwareOfIt")
						uni.removeStorageSync("realName")
						uni.removeStorageSync("ewmimg")
						uni.removeStorageSync("sharebg")
						uni.removeStorageSync("ewmimg")
						uni.removeStorageSync("isPay")
						// uni.clearStorageSync() //清除所有缓存
						setTimeout(()=>{
							uni.navigateTo({
								url:"/pages/login/login"
							})
						},1500)
						
					}
					
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>